package OOday02;

public class Chick extends Animal{
    public Chick(String name, int age, String color) {
        super(name, age, color);
    }

    @Override
    public void eat() {
        System.out.println(name+"在吃小米");
    }

    public void layEggs(){
        System.out.println(name+"再下蛋");
    }
}
